package studentdemo.modul;

public class Student {
    private String sno;
    private String sname;
    private String ssex;
    private int sage;
    private String srname;
    private int stotalcredit;
    private String sclno;

    public Student() {}

    public Student(String sno, String sname, String ssex, int sage, String srname, int stotalcredit, String sclno) {
        this.sno = sno;
        this.sname = sname;
        this.ssex = ssex;
        this.sage = sage;
        this.srname = srname;
        this.stotalcredit = stotalcredit;
        this.sclno = sclno;
    }

    public String getSno() { return sno; }
    public void setSno(String sno) { this.sno = sno; }
    public String getSname() { return sname; }
    public void setSname(String sname) { this.sname = sname; }
    public String getSsex() { return ssex; }
    public void setSsex(String ssex) { this.ssex = ssex; }
    public int getSage() { return sage; }
    public void setSage(int sage) { this.sage = sage; }
    public String getSrname() { return srname; }
    public void setSrname(String srname) { this.srname = srname; }
    public int getStotalcredit() { return stotalcredit; }
    public void setStotalcredit(int stotalcredit) { this.stotalcredit = stotalcredit; }
    public String getSclno() { return sclno; }
    public void setSclno(String sclno) { this.sclno = sclno; }

    public String toString() { return sname + "(" + sno + ")"; }
} 